#include "main.h"

sbit BEEP = P2 ^ 5;

void main()
{
    unsigned int i = 0;
    unsigned char Key = 0;

    LED_put(1, 0);

    while (1)
    {
        Key = key();
        if (Key)
        {
            for (i = 0; i < 50; i++)
            {
                BEEP = ~BEEP;
                Delay(1);
            }
                LED_put(1, Key);
            
        }
    }
}